{template header}

<div class="container">

    <ol class="breadcrumb">
        <li><a href="{SITE_URL}">首页</a></li>
        <li><a href="{tsUrl('ask')}">问答</a></li>
        <li><a href="{tsUrl('ask','question',array('id'=>$strAsk['askid']))}">{$strAsk['title']}</a></li>
        <li class="active">修改回答</li>
    </ol>


    <div class="panel panel-default">
        <div class="panel-body">


            <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-8">


                    <form method="POST" action="{SITE_URL}index.php?app=ask&ac=answeredit&ts=do"  enctype="multipart/form-data">


                        <div class="form-group">
                            <label>回答内容：</label>

                            <div id="tseditor"></div>
                            <div style="display: none;">
                                <textarea name="comment" >{$strComment['comment']}</textarea>
                            </div>
                            <!--<textarea name="content" id="tseditor"></textarea>-->

                        </div>


                        <input type="hidden" name="askid" value="{$strComment['askid']}" />
                        <input type="hidden" name="commentid" value="{$strComment['commentid']}" />


                        <button class="btn btn-success" type="submit">修改回答</button> <a class="btn btn-default" href="{tsUrl('ask','question',array('id'=>$strComment['askid']))}">返回问题</a>

                    </form>


                </div>
                <div class="col-md-2"></div>
            </div>



        </div>
    </div>





</div>
{php doAction('tseditor')}
{template footer}